home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / DVIEW030.LZH / VIEW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-09  |  1.6 KB  |  50 lines

  1. /********************************************************************
  2.  FILENAME: VIEW.HPP
  3.  AUTHOR  : JAKE HILL
  4.  DATE    : 12/1/94
  5.  
  6.  Copyright (c) 1994 by Jake Hill:
  7.  If you use any part of this code in your own project, please credit
  8.  me in your documentation and source code.  Thanks.
  9. ********************************************************************/
  10.  
  11. #define C
  12.  
  13. #ifndef VIEW_HPP
  14. #define VIEW_HPP
  15.  
  16. #include "doom.h"
  17. #include <stdio.h>
  18.  
  19. /* Each array is dynamically allocated based on info in the WAD file. */
  20.       extern seg             *Seg_Array;
  21.       extern side            *Side_Array;
  22.       extern line            *Line_Array;
  23.       extern node            *Node_Array;
  24.       extern node           **PNode_Array;
  25.       extern sector          *Sector_Array;
  26.       extern vertex          *Vertex_Array;
  27.       extern ssector         *SSector_Array;
  28.       extern blockmap        *Blockmap_Array;
  29.       extern blockmap_header *Blockmap_Header;
  30.  
  31. /* A temp variable - probably a better way of doing this. */
  32.       extern wall     Wall;
  33.  
  34. /* Player's X,Y,Z location and Height over floor. */
  35.       extern short Px, Py, Pz, Ph;
  36. /* The angle the player is facing. */
  37.       extern unsigned short Pangle;
  38. /* The angle made by the left side of the player's view cone. */
  39.       extern unsigned short LeftAngle;
  40.  
  41. /* The sine & cosine of the angle the player is facing. */
  42.       extern long CosPangle, SinPangle;
  43.  
  44. /* The node number of the Root Node in the BSP. */
  45.       extern short MaxNode;
  46. /* The height of the floor and ceiling currently being drawn. */
  47.       extern short floor_ht, ceiling_ht;
  48.  
  49. #endif
  50.